package com.yuexunit.finance.project.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.ProductTypeEnum;

/**
*@version 创建时间：2016年10月31日 上午9:16:31
*@author NTBK-021-1006
*类说明
*/

@Entity
@Table(name = "FIN_FINANCE_PRODUCT_INNER")
public class FinanceProductInnerEntity {
	/** 产品ID */
	@Id
	@GeneratedValue
	@Column(name = "FIN_PRODUCT_ID")
	private Long financeProductId;
	
	/** 产品名称 */
	@Column(name = "PRODUCT_NAME")
	private String productName;
	
	/** 产品类型 */
	@Column(name = "PRODUCT_TYPE")
	private ProductTypeEnum productType;
	
	/** 利率 */
	@Column(name = "INTEREST")
	private BigDecimal interest;
	
	/** 融资天数 */
	@Column(name = "FINANCE_DAYS")
	private Integer financeDays;
	
	/** 周期 */
	@Column(name = "CYCLE")
	private Integer cycle;
	
	/** 融资ID */
	@Column(name = "FINANCE_ID")
	private Long financeId;
	
	/** 适用企业ID */
	@Column(name = "ENTERPRISE_ID")
	private Long enterpriseId;
	
	/** 适用企业名称 */
	@Column(name = "ENTERPRISE_NAME")
	private String enterpriseName;
	
	/** 保证金 */
	@Column(name = "BAIL_RATE")
	private BigDecimal bailRate;
	
	/** 赎货预留天数 */
	@Column(name = "DISTRAIN")
	private Integer distrain;
	
	/** 创建时间 */
	@Column(name = "CREATE_DT")
	private Date createDateTime;

	/** 更新时间 */
	@Column(name = "UPDATE_DT")
	private Date updateDateTime;

	public Long getFinanceProductId() {
		return financeProductId;
	}

	public void setFinanceProductId(Long financeProductId) {
		this.financeProductId = financeProductId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public ProductTypeEnum getProductType() {
		return productType;
	}

	public void setProductType(ProductTypeEnum productType) {
		this.productType = productType;
	}

	public BigDecimal getInterest() {
		return interest;
	}

	public void setInterest(BigDecimal interest) {
		this.interest = interest;
	}

	public Integer getFinanceDays() {
		return financeDays;
	}

	public void setFinanceDays(Integer financeDays) {
		this.financeDays = financeDays;
	}

	public Integer getCycle() {
		return cycle;
	}

	public void setCycle(Integer cycle) {
		this.cycle = cycle;
	}

	public Long getFinanceId() {
		return financeId;
	}

	public void setFinanceId(Long financeId) {
		this.financeId = financeId;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public BigDecimal getBailRate() {
		return bailRate;
	}

	public void setBailRate(BigDecimal bailRate) {
		this.bailRate = bailRate;
	}

	public Integer getDistrain() {
		return distrain;
	}

	public void setDistrain(Integer distrain) {
		this.distrain = distrain;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public Date getUpdateDateTime() {
		return updateDateTime;
	}

	public void setUpdateDateTime(Date updateDateTime) {
		this.updateDateTime = updateDateTime;
	}
}
